import { contextBridge } from "electron"

contextBridge.exposeInMainWorld("electron", {
    send: (channel, data) => {
        ipcRenderer.send(channel, data)
    },
    recieve: (channel, func) => {
        ipcRenderer.on(channel, (e, ...args) => func(...args))
    }
})
